package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.Company;

public interface CompanyMapper {
	// 新增顾客
	public int addCompany(Company company);

	// 删除顾客
	public int deleteCompany(@Param("company_id") int company_id);

	// 查询顾客
	public List<Company> getCompanyList(@Param("company_name") String company_name,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询顾客行数
	public Object getCompanyCount(@Param("company_name") String company_name);

	// 获取顾客Id
	public Company getCompanyId(@Param("company_id") int company_id);

	// 新增顾客
	public int updateCompany(Company company);
}
